class CreateProfiles < ActiveRecord::Migration
  def self.up
    create_table :profiles do |t|
      t.string :reg_no                # business registration number
      t.string :auth_no               # authorization number
      t.string :name                  # user name
      t.string :department            # department
      t.string :company               # user company
      t.string :com_address           # company address
      t.string :com_full_address      # company full address
      t.string :tel                   # company telephone
      t.string :mobile                # company mobile phone
      t.string :fax                   # company fax
      t.string :email                 # company email
      t.string :qq                    # user qq number
      t.string :zip_code              # company zip code

      t.timestamps
    end
  end

  def self.down
    drop_table :profiles
  end
end
